import { ref } from 'vue';
import { defineStore } from 'pinia';

export const useStore = defineStore('user', () => {
  // count
  const count = ref<number>(0);
  const onChange = (value: number): void => {
    count.value = value;
  };

  return { count, onChange };
});
